import BasicLayout from '@/layouts/basic-layout';
const meta = {
    auth: true,
    keepAlive:true         
};

const pre = '/settings/';
export default {
    path:'/settings',
    name:'settings',
    redirect: {
        name:`${pre}person`
    },
    meta,
    component:BasicLayout,
    children: [        
        {
            path:'person',
            name:`${pre}person`,
            meta:{
                ...meta,
                title:'人员',
            },
            component:()=> import('@/pages/settings/person.vue')
        },        
        {
            path:'role',
            name:`${pre}role`,
            meta:{
                ...meta,
                title:'角色',
            },
            component:()=> import('@/pages/settings/role.vue')
        },
        {
            path:'basicsetup',
            name:`${pre}basicsetup`,
            meta:{
                ...meta,
                title:'基础设置',
            },
            component:()=> import('@/pages/settings/basicsetup')
        },
        {
            path:'homeset',
            name:`${pre}homeset`,
            meta:{
                ...meta,
                title:'首页设置',
            },
            component:()=> import('@/pages/settings/homeset')
        },
        {
            path: 'userSetting',
            name: `${pre}userSetting`,
            header:'0',
            meta: {
                ...meta,
                title: '设置页面',
            },
            auth: ["hidden"],
            component: () => {
                return import ('@/pages/settings/userSetting'); 
            },
        },
    ]
}